<h1>Listing waters</h1>

<table>
  <tr>
    <th>Value</th>
    <th>Time</th>
    <th>Id</th>
  </tr>

<% for water in @waters %>
  <tr>
    <td><%=h water.value %></td>
    <td><%=h water.time %></td>
    <td><%=h water.id %></td>
    <td><%= link_to 'Show', water %></td>
    <td><%= link_to 'Edit', edit_water_path(water) %></td>
    <td><%= link_to 'Destroy', water, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New water', new_water_path %>
